package indigo.ueditor.config;

import static indigo.ueditor.config.UEditorConfiguration.DEFAULT_CONFIG_LOCATION;
import static indigo.ueditor.config.UEditorConfiguration.DEFAULT_PATH;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

@Documented
@Retention(RUNTIME)
@Target(TYPE)
@Import(UEditorConfiguration.class)
public @interface EnableUEditor {
	@AliasFor("repository")
	String value() default "";

	@AliasFor("value")
	String repository() default "";

	String path() default DEFAULT_PATH;

	String configLocation() default DEFAULT_CONFIG_LOCATION;
}
